package demo.yml.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;

@ConfigurationProperties(prefix = "userinfo")
@Controller
@Data
public class UserInfo {

    private String name;
    private Integer age;

    public UserInfo(){}

    public UserInfo(String name){
        this.name = name;
    }
}
